<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/17 0017
  Time: 下午 4:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<html>
<head>
    <title>列表</title>
</head>
<body>
        <a href="/save"> 添加</a>
    <table border="1" cellspacing="1" cellpadding="1">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>身份证</th>
            <th>电话号码</th>
            <th>性别</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${studentlist}" var="item" varStatus="index" >
        <tr>
                <td>${index.index+1}</td>
                <td>${item.name}</td>
                <td>${item.age}</td>
                <td>${item.idNo}</td>
                <td>${item.phone}</td>
                <td>${item.sex}</td>
                <td>
                    <a href="/delete">修改</a>
                    <a href="/delete?studentId=${item.id}">删除</a>
                </td>
        </tr>
        </c:forEach>
    </table>

</body>
</html>
